package com.example.swimmingpool.util;

import cn.hutool.core.lang.UUID;
import cn.hutool.core.util.RandomUtil;
import cn.hutool.crypto.digest.DigestUtil;

public class TokenUtil {
    public static String generateToken() {
        var now = String.valueOf(System.currentTimeMillis());
        var tmp = UUID.randomUUID(false) + now + RandomUtil.randomString(6);
        return DigestUtil.md5Hex(tmp);
    }
}
